<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.*, fr.ginvest.entity.*, fr.ginvest.interfaces.*, servlet.*, java.text.*" %>

<%
	session.removeAttribute("deja");
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	Object le_user = session.getAttribute("user");
	Object le_type = session.getAttribute("type");
	boolean hasClub= false;
	if(session.getAttribute("hasClub")!=null)
		hasClub = (Boolean)session.getAttribute("hasClub");
	if(le_user == null){ %>
		<jsp:forward page="login.jsp"/>
	<% }
    %>
<%
	Startup startup = (Startup)session.getAttribute("startup");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>
		Prise de participation
	</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="css/coin-slider.css" />
	<script type="text/javascript" src="js/cufon-yui.js"></script>
	<script type="text/javascript" src="js/droid_sans_400-droid_sans_700.font.js"></script>
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="js/script.js"></script>
	<script type="text/javascript" src="js/coin-slider.min.js"></script>
	
	<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.8.9.custom.min.js"></script>
	<script src="js/ui/jquery.ui.core.js"></script>
	<script src="js/ui/jquery.ui.widget.js"></script>
	<script type="text/javascript" src="js/jqGrid/js/i18n/grid.locale-fr.js"></script>
	<script type="text/javascript" src="js/jqGrid/js/jquery.jqGrid.min.js"></script>
	<script type="text/javascript" src="js/superfish/superfish.js"></script>
	<script type="text/javascript" src="js/superfish/hoverIntent.js"></script>
	<script type="text/javascript" src="js/gestiondate.js"></script>
	<script type="text/javascript" src="js/Application.js"></script>
	<script type="text/javascript" src="js/json/json.js"></script>
	
	<link href="css/custom-theme/jquery-ui-1.8.9.custom.css" title="Défaut" rel="stylesheet" type="text/css" media="screen" />
	<link href="js/jqGrid/css/ui.jqgrid.css" title="Défaut" rel="stylesheet" type="text/css" media="screen" />
	<link href="css/superfish.css" title="Défaut" rel="stylesheet" type="text/css" media="screen" />
	<link href="images/ccu.ico" rel="shortcut icon" type="image/x-icon" />
	
</head>
<body>
		<div class="main">
		  <div class="header">
		    <div class="header_resize">
		    <div class="searchform">
		        Bienvenue 	
					<% if (le_user != null) { %>
						<%= le_user %>
					<% } %>,
					<a href="logout.jsp" title="">Deconnexion</a>
		      </div>
		      <div class="logo">
		        <h1><a href="index.jsp">G<span>invest</span></a></h1>
		      </div>
		      <div class="clr"></div>
		      <div class="menu_nav">
		        <% 	if (le_type.toString().equals("INV")) {
		        	%>
		        <ul>
		          <li><a href="index.jsp"><span>Accueil</span></a></li>
		          <li><a href="startup_inv.jsp"><span>Startup</span></a></li>
		     	  <li class="active"><a href="participation.jsp"><span>Participation</span></a></li>
		     	  <li><a href="club.jsp"><span>Club</span></a></li>
		          <%if(hasClub){%>
		          	<li><a href="message.jsp"><span>Messages</span></a></li>
		          <% } %>
		          <li><a href="investisseur_detail.jsp"><span>Mes informations</span></a></li>
		        </ul>
		        <% 
		        	} 	%>
		      </div>
		    </div>
		  </div>
		  <div class="content">
		  	<h2>
				Prise de participation
			</h2>					
			<center color="red"><div id="error_login"></div></center>
		    <div class="content_resize">
		      <div class="mainbar">
		      	<form action="controller" method="post">
		      		<table border = "0" align="center" >
		      			<tr>
		      				<td width="100px"><label for="startup">Startup:</label></td>
		      				<td width="130px">
		      					<input type="text" name="startup" id="startup" class="form_input" readonly="readonly" value="<%=startup.getNom()%>"/>
		      				</td>
		      			</tr>
		      			<tr>
		      				<td width="100px"><label for="montant">Montant:</label></td>
		      				<td width="130px">
		      					<input type="text" name="montant" id="montant" class="form_input"></input>
		      				</td>
		      				<td width="100px"><label for="date">Date:</label></td>
		      				<td width="130px">
		      					<input type="text" name="date" id="date" class="form_input"></input>
		      				</td>
		      			</tr>
		      		</table>
		      		<input type="hidden" name="action" value="5" />
		      		<input type="hidden" name="idStartup" value="<%=startup.getId() %>" />
		      		<p><center><input type="submit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"  name="login_form_ok" id="login_form_ok" value="Enregistrer"/></center></p>
		      	</form>
				
			   </div>
		    </div>
		  </div>		
		  <div class="clr"></div>
		  <div class="footer">
		    <div class="footer_resize">
		      <p class="lf">&copy; Copyright 2011.</p>
		      <p class="rf">R&eacute;alis&eacute; par <a href="index.jsp"> G_INVEST CORPORATION</a></p>
		      <div style="clear:both;"></div>
		    </div>
		  </div>
		</div>
	</body>
</html>